public abstract class GpPort
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
mClosePort |
protected android.os.Handler |
mHandler |
protected int |
mmBytesAvailable |
protected int |
mPrinterId |
protected int |
mState |
构造器和说明 |
---|
GpPort() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
closePortFailed()
Indicate that the connection attempt failed and notify the UI Activity.
|
protected void |
connectionFailed()
Indicate that the connection attempt failed and notify the UI Activity.
|
protected void |
connectionLost()
Indicate that the connection was lost and notify the UI Activity.
|
protected void |
connectionToPrinterFailed()
Indicate that the connection attempt failed and notify the UI Activity.
|
protected int |
getState()
Return the current connection state.
|
protected void |
invalidPrinter()
Indicate that the connection was lost and notify the UI Activity.
|
protected void |
setState(int state)
Set the current state of the connection
|
protected boolean mClosePort
protected int mState
protected android.os.Handler mHandler
protected int mmBytesAvailable
protected int mPrinterId
protected void setState(int state)
state
- An integer defining the current connection stateprotected int getState()
protected void connectionFailed()
protected void closePortFailed()
protected void connectionLost()
protected void invalidPrinter()
protected void connectionToPrinterFailed()